package com.netease.research.pojo;

import java.math.BigDecimal;

public class Product {
    private Integer id;

    private String title;

    private String summary;

    private String picUrl;

    private String detail;

    private BigDecimal price;

    private Integer stock;

    private Integer status;

    public Product(Integer id, String title, String summary, String picUrl, String detail, BigDecimal price, Integer stock, Integer status) {
        this.id = id;
        this.title = title;
        this.summary = summary;
        this.picUrl = picUrl;
        this.detail = detail;
        this.price = price;
        this.stock = stock;
        this.status = status;
    }

    public Product() {
        super();
    }

    public Integer getId() {
        return id;
    }

    public void setId(Integer id) {
        this.id = id;
    }

    public String getTitle() {
        return title;
    }

    public void setTitle(String title) {
        this.title = title == null ? null : title.trim();
    }

    public String getSummary() {
        return summary;
    }

    public void setSummary(String summary) {
        this.summary = summary == null ? null : summary.trim();
    }

    public String getPicUrl() {
        return picUrl;
    }

    public void setPicUrl(String picUrl) {
        this.picUrl = picUrl == null ? null : picUrl.trim();
    }

    public String getDetail() {
        return detail;
    }

    public void setDetail(String detail) {
        this.detail = detail == null ? null : detail.trim();
    }

    public BigDecimal getPrice() {
        return price;
    }

    public void setPrice(BigDecimal price) {
        this.price = price;
    }

    public Integer getStock() {
        return stock;
    }

    public void setStock(Integer stock) {
        this.stock = stock;
    }

    public Integer getStatus() {
        return status;
    }

    public void setStatus(Integer status) {
        this.status = status;
    }
}